package com.daxiasoftware.xxx.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.daxiasoftware.xxx.entity.User;
import com.daxiasoftware.xxx.mapper.UserMapper;

/**
 *
 * User 表数据服务层接口实现类
 *
 */
@Service
public class UserService extends ServiceImpl<UserMapper, User> {

	public boolean deleteAll() {
		return retBool(baseMapper.deleteAll());
	}

	public List<User> selectListBySQL() {
		return baseMapper.selectListBySQL();
	}

	public User findByUsername(String username) {
		User query = new User();
		query.setUsername(username);
		return baseMapper.selectOne(query);
	}

}